#include <iostream>
double exponentiation(double base,int exponent){
  if (exponent == 0){
    return 1;
  }
  double result = exponentiation(base,exponent/2);
  result *= result;
  if (exponent % 2 == 1){
    result *=base;
  }
  return result;
}
int main(){
  double base = 1.1;
  int exponent = 2;
  double result = exponentiation(base,exponent);
  std::cout << base << "的" << exponent << "次幂是" << result << std::endl;
  return 0;
}
  
